<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/1.4.8/angular.js"></script>
</head>
<body>
<div ng-controller="myCtrl">
    <ul>
        <li>
            <span>序号</span>
            <span>姓名</span>
            <span>分数</span>
            <span>操作</span>
        </li>
        <li ng-repeat="stu in data | filter:fscore">
            <span>{{stu.id}}</span>
            <span>{{stu.name}}</span>
            <span>{{stu.score}}</span>
            <span ng-click="remove(stu,$index)">删除</span>
        </li>
    </ul>
</div>
<script tyte="text/javascript">
    var app = angular.module("app", []);
    app.controller("myCtrl",["$scope",function ($scope) {
        $scope.data = [
            {name:"JJ1",id:1,age:26,score:80},
            {name:"JJ2",id:2,age:26,score:30},
            {name:"JJ",id:3,age:26,score:70},
            {name:"JJ4",id:4,age:26,score:59}
        ];
        $scope.fscore = function (e) {
            return e.score > 60;
        }
        // 结论：通过item取值为整取方法
        $scope.remove = function (item,index) {
            console.log(item);
            console.log(index);
            var item2 =$scope.data[index];
            console.log(item2);
        }
    }]);
</script>
</body>
</html>